package com.stoken.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stoken.dao.MemberShopWalletDao;
import com.stoken.domain.LineUse;
import com.stoken.domain.MemberShopWallet;
import com.stoken.service.MemberShopWalletService;
import com.symbio.dao.hibernate.GenericDaoImpl;
import com.symbio.service.impl.AbstractServiceImpl;

@Service
public class MemberShopWalletServiceImpl extends AbstractServiceImpl<MemberShopWallet, Long> implements MemberShopWalletService{
    
	@Autowired
	private MemberShopWalletDao memberShopWalletDao;
	
	@Override
	public GenericDaoImpl<MemberShopWallet, Long> getDao() {		
		return memberShopWalletDao;
	}

	@Override
	public void transferOfConsume(String userAccount, double money) {
		
		
	}

	@Override
	public MemberShopWallet getShopWalletByBaseUserName(String baseUserName) {
		String hql1 = "from MemberShopWallet where baseUsername.baseUsername = ?";
		MemberShopWallet memberShopWallet = memberShopWalletDao.find(hql1 , new Object[]{baseUserName});
		return memberShopWallet;
	}

}
